/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmHistHobDet.java
 *
 * Created on 03-sep-2011, 22:55:04
 */

package GUI;

import Negocio.ClienteHob;
import TablasAuxiliares.TACaracteresHobbies;
import TablasAuxiliares.TAHobbies;
import TablasAuxiliares.TAModalidadesHobbies;
import Util.FormatoFecha;
import Util.Varios;
import java.util.Date;

/**
 *
 * @author Javi
 */
public class frmHistHobDet extends javax.swing.JDialog {
    //Indica la operación que se está realizando
    private char _cOperacion;
    //Referencia al formulario padre
    private frmHistHob _frmPadre;
    //Referencia al objeto de datos principal
    private ClienteHob _oClienteHob;
    //Objeto auxiliar para manejar el combo de hobbies
    private TAHobbies _oHobbies;

    /** Creates new form frmHistHobDet */
    public frmHistHobDet(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** Creates new form frmHistHobDet */
    public frmHistHobDet(frmHistHob parent, boolean modal) {
        super(parent, modal);
        this._frmPadre = parent;
        //Inicializo la referencia al objeto de datos del formulario padre.
        this._oClienteHob = parent.getoObjetoDatos();
        //Inicializo el objeto Hobbies
        this._oHobbies = new TAHobbies();
        initComponents();
        //Los combos se cargan a partir de las tablas 1 SOLA VEZ, al crear el formulario.
        this.cargarCombos();
    }

    /*
     * Inicializa los combos a partir de las tablas auxiliares en forma "codigo - descripcion"
     */
    private void cargarCombos(){
        //Datos hobbies
        Varios.cargaCombo (jCBModHob1, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob2, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob3, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob4, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBModHob5, new TAModalidadesHobbies());
        Varios.cargaCombo (jCBCarHob1, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob2, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob3, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob4, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob5, new TACaracteresHobbies());
        Varios.cargaCombo (jCBCarHob5, new TACaracteresHobbies());
        //Los combos de hobbys se cargan en el claseAPantalla
    }

    public void inicializaFormulario ( char cOperacion ){
        //Inicializo el código de operación
        this._cOperacion = cOperacion;
        //Carga los datos de la clase
        this.claseAPantalla();
        //Inicializa los controles necesarios
        this.inicializaControles();
    }

    /*
     * Este método carga los atributos de la clase los controles del formulario de entrada.
     */
    private void claseAPantalla(){
        //Clase ClientesHob
        this.jTFIdClienteHob.setText( Integer.toString( this._oClienteHob.getiIdCliente()));
        //Controlo si el campo clave fecha viene a nulo (solo en el insert) y en ese caso pongo la fecha de hoy
        this.jFTFFechaHob.setValue ( (this._oClienteHob.getdFecha()== null)? new Date() : this._oClienteHob.getdFecha());
        String sCodHobby;
        //Hobby 1
        sCodHobby = this._oClienteHob.getasCodHobby().get(0);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob1, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob1, this._oHobbies.getsCaracter());
            //El combo de hobbies se carga en los eventos de los 2 combos anteriores
            Varios.seleccionaItemCombo (jCBHob1, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob1, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob1, "");
            Varios.seleccionaItemCombo (jCBCarHob1, "");
        }

        //Hobby 2
        sCodHobby = this._oClienteHob.getasCodHobby().get(1);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob2, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob2, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob2, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob2, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob2, "");
            Varios.seleccionaItemCombo (jCBCarHob2, "");
        }
        //Hobby 3
        sCodHobby = this._oClienteHob.getasCodHobby().get(2);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob3, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob3, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob3, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob3, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob3, "");
            Varios.seleccionaItemCombo (jCBCarHob3, "");
        }
        //Hobby 4
        sCodHobby = this._oClienteHob.getasCodHobby().get(3);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob4, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob4, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob4, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob4, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob4, "");
            Varios.seleccionaItemCombo (jCBCarHob4, "");
        }
        //Hobby 5
        sCodHobby = this._oClienteHob.getasCodHobby().get(4);
        if (sCodHobby.compareTo ("") != 0){
            this._oHobbies.setsCodigo(sCodHobby);
            this._oHobbies.recupera();
            //Selecciono los valores correspondientes en el combo de modalidad y en el de caracter
            Varios.seleccionaItemCombo (jCBModHob5, this._oHobbies.getsModalidad());
            Varios.seleccionaItemCombo (jCBCarHob5, this._oHobbies.getsCaracter());
            Varios.seleccionaItemCombo (jCBHob5, sCodHobby);
        }else{   //Cargar todos los hobbies
            Varios.cargaComboHobbies (jCBHob5, new TAHobbies(), "", "");
            Varios.seleccionaItemCombo (jCBModHob5, "");
            Varios.seleccionaItemCombo (jCBCarHob5, "");
        }
    }

    /*
     * Este método carga y habilita/inhabilita los controles que sean necesarios
     */
    private void inicializaControles (){
        //Actualizo el título de la ventana en función de la operación.
        this.setTitle( this._frmPadre.getTitle() + " - " + Varios.getLiteralOperacion(this._cOperacion) );
        //Desactivar los controles en la baja y en la consulta y activarlos en el alta o la modificación
        if ( this._cOperacion == 'C' || this._cOperacion == 'B')
            Varios.SetEnabledControles( this.jPanel4, false );
        else
            Varios.SetEnabledControles( this.jPanel4, true );
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel4 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        jCBModHob1 = new javax.swing.JComboBox();
        jCBCarHob1 = new javax.swing.JComboBox();
        jCBHob1 = new javax.swing.JComboBox();
        jLabel51 = new javax.swing.JLabel();
        jTFIdClienteHob = new javax.swing.JTextField();
        jLabel52 = new javax.swing.JLabel();
        try{
            jFTFFechaHob = new javax.swing.JFormattedTextField( new FormatoFecha() );
            jCBModHob2 = new javax.swing.JComboBox();
            jCBModHob3 = new javax.swing.JComboBox();
            jCBModHob4 = new javax.swing.JComboBox();
            jCBModHob5 = new javax.swing.JComboBox();
            jCBCarHob2 = new javax.swing.JComboBox();
            jCBCarHob3 = new javax.swing.JComboBox();
            jCBCarHob4 = new javax.swing.JComboBox();
            jCBCarHob5 = new javax.swing.JComboBox();
            jCBHob2 = new javax.swing.JComboBox();
            jCBHob3 = new javax.swing.JComboBox();
            jCBHob4 = new javax.swing.JComboBox();
            jCBHob5 = new javax.swing.JComboBox();
            jButtonAceptar = new javax.swing.JButton();

            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

            jLabel32.setText("Modalidad");

            jLabel34.setText("Caracter");

            jLabel50.setText("Hobby");

            jCBModHob1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCBModHob1ActionPerformed(evt);
                }
            });

            jCBCarHob1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCBCarHob1ActionPerformed(evt);
                }
            });

            jLabel51.setText("IdCliente");

            jTFIdClienteHob.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTFIdClienteHobActionPerformed(evt);
                }
            });

            jLabel52.setText("Fecha actualización");

        }catch (Exception e){
            e.printStackTrace();
        }

        jCBModHob2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob2ActionPerformed(evt);
            }
        });

        jCBModHob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob3ActionPerformed(evt);
            }
        });

        jCBModHob4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob4ActionPerformed(evt);
            }
        });

        jCBModHob5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBModHob5ActionPerformed(evt);
            }
        });

        jCBCarHob2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob2ActionPerformed(evt);
            }
        });

        jCBCarHob3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob3ActionPerformed(evt);
            }
        });

        jCBCarHob4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob4ActionPerformed(evt);
            }
        });

        jCBCarHob5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBCarHob5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel51)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTFIdClienteHob, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel52)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jFTFFechaHob, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel32)
                            .addComponent(jCBModHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBModHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(37, 37, 37)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCBCarHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel34)
                            .addComponent(jCBCarHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBCarHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(32, 32, 32)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCBHob5, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob4, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob3, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel50)
                            .addComponent(jCBHob1, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(271, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTFIdClienteHob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel52)
                        .addComponent(jFTFFechaHob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel51))
                .addGap(30, 30, 30)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel32)
                        .addGap(18, 18, 18)
                        .addComponent(jCBModHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel50)
                            .addComponent(jLabel34))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCBCarHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBHob1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBModHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBCarHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCBHob5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(76, Short.MAX_VALUE))
        );

        jButtonAceptar.setText("Aceptar");
        jButtonAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(348, 348, 348)
                        .addComponent(jButtonAceptar))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButtonAceptar)
                .addContainerGap(27, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTFIdClienteHobActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdClienteHobActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTFIdClienteHobActionPerformed

    private void jButtonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarActionPerformed
        setVisible(false);
}//GEN-LAST:event_jButtonAceptarActionPerformed

    private void jCBModHob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob1ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob1, this._oHobbies, Varios.getClaveItemCombo (jCBModHob1), Varios.getClaveItemCombo (jCBCarHob1));
    }//GEN-LAST:event_jCBModHob1ActionPerformed

    private void jCBCarHob1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob1ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob1, this._oHobbies, Varios.getClaveItemCombo (jCBModHob1), Varios.getClaveItemCombo (jCBCarHob1));
    }//GEN-LAST:event_jCBCarHob1ActionPerformed

    private void jCBModHob2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob2ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob2, this._oHobbies, Varios.getClaveItemCombo (jCBModHob2), Varios.getClaveItemCombo (jCBCarHob2));
    }//GEN-LAST:event_jCBModHob2ActionPerformed

    private void jCBCarHob2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob2ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob2, this._oHobbies, Varios.getClaveItemCombo (jCBModHob2), Varios.getClaveItemCombo (jCBCarHob2));
    }//GEN-LAST:event_jCBCarHob2ActionPerformed

    private void jCBModHob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob3ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob3, this._oHobbies, Varios.getClaveItemCombo (jCBModHob3), Varios.getClaveItemCombo (jCBCarHob3));
    }//GEN-LAST:event_jCBModHob3ActionPerformed

    private void jCBCarHob3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob3ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob3, this._oHobbies, Varios.getClaveItemCombo (jCBModHob3), Varios.getClaveItemCombo (jCBCarHob3));
    }//GEN-LAST:event_jCBCarHob3ActionPerformed

    private void jCBModHob4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob4ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob4, this._oHobbies, Varios.getClaveItemCombo (jCBModHob4), Varios.getClaveItemCombo (jCBCarHob4));
    }//GEN-LAST:event_jCBModHob4ActionPerformed

    private void jCBCarHob4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob4ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob4, this._oHobbies, Varios.getClaveItemCombo (jCBModHob4), Varios.getClaveItemCombo (jCBCarHob4));
    }//GEN-LAST:event_jCBCarHob4ActionPerformed

    private void jCBModHob5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBModHob5ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob5, this._oHobbies, Varios.getClaveItemCombo (jCBModHob5), Varios.getClaveItemCombo (jCBCarHob5));
    }//GEN-LAST:event_jCBModHob5ActionPerformed

    private void jCBCarHob5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBCarHob5ActionPerformed
        //Lanzo recarga del combo de hobbies aplicando las condiciones que sean necesarias
        Varios.cargaComboHobbies (jCBHob5, this._oHobbies, Varios.getClaveItemCombo (jCBModHob5), Varios.getClaveItemCombo (jCBCarHob5));
    }//GEN-LAST:event_jCBCarHob5ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAceptar;
    private javax.swing.JComboBox jCBCarHob1;
    private javax.swing.JComboBox jCBCarHob2;
    private javax.swing.JComboBox jCBCarHob3;
    private javax.swing.JComboBox jCBCarHob4;
    private javax.swing.JComboBox jCBCarHob5;
    private javax.swing.JComboBox jCBHob1;
    private javax.swing.JComboBox jCBHob2;
    private javax.swing.JComboBox jCBHob3;
    private javax.swing.JComboBox jCBHob4;
    private javax.swing.JComboBox jCBHob5;
    private javax.swing.JComboBox jCBModHob1;
    private javax.swing.JComboBox jCBModHob2;
    private javax.swing.JComboBox jCBModHob3;
    private javax.swing.JComboBox jCBModHob4;
    private javax.swing.JComboBox jCBModHob5;
    private javax.swing.JFormattedTextField jFTFFechaHob;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JTextField jTFIdClienteHob;
    // End of variables declaration//GEN-END:variables

}
